﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlightSearch
{
    class Flight
    {
        public string destination;
        public string flightNumber;
        public string flightModel;
        public int travelTime;

        public void FillFlightInfo()
        {
            Console.Write("Enter destination: ");
            destination = Console.ReadLine();
            Console.Write("Enter flight number: ");
            flightNumber = Console.ReadLine();
            Console.Write("Enter flight model: ");
            flightModel = Console.ReadLine();
            Console.Write("Enter travel time: ");
            travelTime = Int32.Parse(Console.ReadLine());
        }

        public void PrintFlightSearchResult()
        {
            Console.WriteLine("Flight №: {0}, Flight model: {1}, Travel time: {2}h", flightNumber, flightModel, travelTime);
        }
    }
}
